build: Add an option to use more conservative GResource embedding
authorSimon McVittie <smcv@debian.org>
Mon, 15 Aug 2022 21:24:26 +0000 (22:24 +0100)
committerJeremy Bicha <jbicha@ubuntu.com>
Sun, 21 Aug 2022 21:40:46 +0000 (22:40 +0100)
commitb16e1752474fb69d22c7701805f0c09069642134
tree7d6662988d3d6a060a15a646642261c6bae2f0f8
parent894f7c9ef4d7a8ace727e7d80df08cd300f5c0ac
build: Add an option to use more conservative GResource embedding

Doing clever things with objcopy is faster, but also doesn't work on
all toolchains and architectures: in particular, Debian has had trouble
with this on arm and mips.

Developers will want to leave this option switched on for faster
incremental builds (unless their toolchain doesn't support it), but in
a distro build environment where we are compiling all of GTK every time,
the cost of potentially unreliable builds is higher than the cost of
using slower but more conservative GResource embedding.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5107
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4956
Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Name build-Add-an-option-to-use-more-conservative-GResource-em.patch
gtk/meson.build
meson_options.txt